package com.gues.ddc_app.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gues.ddc_app.entity.Orders;
import com.gues.ddc_app.mapper.OrdersMapper;
import com.gues.ddc_app.service.IOrdersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huHang
 * @since 2023-02-12
 */
@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements IOrdersService {
    public List<Orders> getList(Wrapper<Orders> wrapper){
        return baseMapper.getList(wrapper);
    }

    @Override
    public <E extends IPage<Orders>> E page(E page) {
        return  baseMapper.queryByCondition(page);
    }

}
